import { defineStore } from 'pinia';

export interface IAppState {
    title: string;
    version: string;
}

export const useAppStore = defineStore({
    id: 'app-store',
    state: (): IAppState => ({
        title: '仓库测试值',
        version: '',
    }),

    getters: {
        getTest(): string {
            return this.title;
        },
    },
    actions: {
        changeVal() {
            this.title = '改变值为：14';
        },
    },
});
